package models.tile;

import java.awt.Graphics;
import java.awt.Image;
import java.io.IOException;
import java.util.ArrayList;

import javax.swing.ImageIcon;

//This class have to work following the design pattern "Abstract Factory", in order to create
//all the different tiles of the game.
public class Tile {
	
	public int posX, posY;
	public int width, height;
	public int frame, numFrames;

	public ArrayList<Image> tiles = new ArrayList<Image>();
	
	public Tile() {
		// TODO Auto-generated constructor stub
	}

	public Tile(int posX, int posY, int width) {

		this.posX = posX;
		this.posY = posY;
		this.width = width;
	}
	
	public void draw(Graphics g) {

		//TODO remove frame
		frame = 0;
		g.drawImage(tiles.get(frame), posX, posY, null);
		
	}
	
	public void addFrame(String path) throws IOException{
		
		
	}
	public int getPosX() {
		return posX;
	}

	public void setPosX(int posX) {
		this.posX = posX;
	}

	public int getPosY() {
		return posY;
	}

	public void setPosY(int posY) {
		this.posY = posY;
	}
	
}
